package com.chen.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/*
* 课程实体类
* */
@Entity
@Table(name = "s_course")
public class Course implements Serializable {
    private Integer id;
    private String name;
    private Integer teacherId;
    private String courseDate;
    private Integer selectedNum;
    private Integer maxNum;
    private String info;

    public Course() {
    }

    public Course(Integer id, String name, Integer teacherId, String courseDate, Integer selectedNum, Integer maxNum, String info) {
        this.id = id;
        this.name = name;
        this.teacherId = teacherId;
        this.courseDate = courseDate;
        this.selectedNum = selectedNum;
        this.maxNum = maxNum;
        this.info = info;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public String getCourseDate() {
        return courseDate;
    }

    public void setCourseDate(String courseDate) {
        this.courseDate = courseDate;
    }

    public Integer getSelectedNum() {
        return selectedNum;
    }

    public void setSelectedNum(Integer selectedNum) {
        this.selectedNum = selectedNum;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", teacherId=" + teacherId +
                ", courseDate='" + courseDate + '\'' +
                ", selectedNum=" + selectedNum +
                ", maxNum=" + maxNum +
                ", info='" + info + '\'' +
                '}';
    }
}
